<?php
echo CHtml::link('Add Country', array('/projectNationality/create/'.$model->id));
$this->widget('bootstrap.widgets.TbGridView',array(
    'dataProvider'=>$countriesList,
    'columns'=>array(
        array('name'=>'id', 'header'=>'#'),
        array('name'=>'nationality.country_en'),
        array('name'=>'activeFlag', 'header'=>'Active'),
        array(
            'class'=>'bootstrap.widgets.TbButtonColumn',
            'template'=>'{update}{delete}',
            'buttons'=>array
            (
                'update' => array
                (
                    'url'=>'Yii::app()->createUrl("projectNationality/update", array("id"=>$data->id))',
                ),
                'delete' => array
                (
                    'url'=>'Yii::app()->createUrl("projectNationality/delete", array("id"=>$data->id))',
                    'deleteConfirmation'=>"js:'Are you sure you want to delete this item?'",
                ),
            ),
            'htmlOptions'=>array('style'=>'width: 50px'),
        ),
    ),
)); ?>
